package sample;

public abstract class eg5__6Animal {
    String name;
    String color;
    public eg5__6Animal(String name,String color){
        this.name=name;
        this.color=color;
    }
    public eg5__6Animal(){
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name=name;
    }
    public abstract void eat();
    public abstract void sleep();
}
